package presenters.test

class TestNode {

  String nodeName
  Map attributes
  Object value

  TestNode(String nodeName) {
    this.nodeName = nodeName
  }

  TestNode(String nodeName, Object value) {
    this.nodeName = nodeName
    this.value = value
  }

  TestNode(String nodeName, Map attributes) {
    this.nodeName = nodeName
    this.attributes = attributes
  }

  TestNode(String nodeName, Map attributes, Object value) {
    this.nodeName = nodeName
    this.attributes = attributes
    this.value = value
  }

  public String toString() {
    return "${nodeName} attributes: ${attributes} value: ${value}"
  }

  public boolean equals(Object obj) {
    return nodeName == obj.nodeName && attributes == obj.attributes && value == obj.value
  }



}